import React, {useEffect} from "react";
import { useNavigate } from "react-router-dom";

export default function News() {
  const navi = useNavigate()

  // 进入News后等待两秒自动跳转到message
  useEffect(()=>{
    setTimeout(()=>{
      navi('../Message')
    }, 2000)
  }, [])
  return <main>news</main>;
}